// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   test.java

import com.succez.custom.gssjxt.client.*;
import java.io.IOException;
import java.util.Properties;
import java.util.concurrent.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import com.succez.custom.gssjxt.client.TestGSClient;

public class test extends HttpServlet
{

    public test()
    {
    }

    public void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
    {
        doPost(request, response);
    }

    public void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
    {
        try
        {
            Properties prop = new Properties();
            java.io.InputStream in = TestGSClient.class.getClassLoader().getResourceAsStream("config.properties");
            prop.load(in);
            ConfigUtil.backup = prop.getProperty("backup");
            ConfigUtil.gtbackup = prop.getProperty("gtbackup");
            ConfigUtil.url = prop.getProperty("url", "http://178.78.1.1:8080/xtgx/services/dataprovide?wsdl");
            ConfigUtil.feedBack = prop.getProperty("feedBack");
            ConfigUtil.feedBackMethod = prop.getProperty("feedBackMethod");
            ConfigUtil.version = prop.getProperty("version");
            ConfigUtil.gturl = prop.getProperty("gturl", "http://178.78.1.1:8082/xtgx/services/gtdataprovide?wsdl");
        }
        catch(Exception ex)
        {
            throw new RuntimeException(ex);
        }
        ScheduledExecutorService pool = Executors.newScheduledThreadPool(1);
        TestGtClient gtclient = new TestGtClient();
        pool.scheduleWithFixedDelay(gtclient, 0L, 5L, TimeUnit.SECONDS);
    }

    private static final String URL = "http://178.78.1.1:8080/xtgx/services/dataprovide?wsdl";
    private static final String GTURL = "http://178.78.1.1:8082/xtgx/services/gtdataprovide?wsdl";
}
